<div class="col-management">
    <div class="col-management-header">
        <h3>Campaign</h3>
    </div>
    <div class="col-management-body">
        <div class="survey-header">
            <div class="survey-current-folder">
                Folder:
                <select class="choose-folder-survey">
                    <option value="0">View all surveys</option>
                    <?php
                    foreach($survey as $value){
                        echo '<option value="'.$value['sid'].'">'.$value['survey_name'].'</option>';
                    }
                    ?>
                </select>
            </div>
            <div class="survey-title-search">
                <input class="search-survey" type="text" placeholder="Title Search:">
            </div>
        </div>
        <div class="survey-body">
            <table class="table">
                <tr class="table-header">
                    <td>Survey Title</td>
                    <td>Folder</td>
                    <td>Created</td>
                    <td>Modified</td>
                    <td>Design</td>
                    <td>Analyze</td>
                    <td>Actions</td>
                </tr>
                <?php
                foreach($data as $value){
                    ?>
                    <tr>
                        <td><?php echo $value['survey_child_name']; ?></td>
                        <td><?php echo $value['survey_name']; ?></td>
                        <td><?php echo $value['survey_child_created']; ?></td>
                        <td>June 29, 2014 10:02 AM</td>
                        <td class="survey-design-icon">
                            <a title="<?php echo $value['survey_child_name']; ?>" href="<?php echo ROOT_URL."management/#survey/".$value['scid']; ?>">
                                <i class="fa fa-pencil-square-o"></i>
                            </a>
                        </td>
                        <td class="survey-analyze-icon">
                            <a title="Analyze" href="<?php echo ROOT_URL."management#analytics/".$value['scid']; ?>">
                                <i class="fa fa-bar-chart"></i>
                            </a>
                        </td>
                        <td class="survey-action-icon">
                            <a title="Position" href="<?php echo ROOT_URL."management#position/".$value['sid']; ?>">
                                <i class="fa fa-align-left"></i>
                            </a>
                            <i title="Delete" scid="<?php echo $value['scid']; ?>" onclick="removeSurveyChild(this);" class="fa fa-times"></i>
                        </td>
                    </tr>
                <?php
                }
                ?>
            </table>

            <div class="pagination">
                <ul>
                    <li><a href="">Prev</a></li>
                    <li class="active"><a href="">1</a></li>
                    <li><a href="">2</a></li>
                    <li><a href="">3</a></li>
                    <li><a href="">Next</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
